<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <div><h1>单文件上传</h1></div>
    <div>
        <!--    文件上传的表单：1.post请求 2.必须设置enctype="multipart/form-data" 3.input type="file"-->
        <form action="/api/file/fileupload.do" method="post" enctype="multipart/form-data">
            <div>
                <label>选择上传的文件：</label>
                <input type="file" name="file">
            </div>
            <button>点击上传</button>
        </form>
    </div>

    <div><h1>多文件上传</h1></div>
    <div>
        <!--    文件上传的表单：1.post请求 2.必须设置enctype="multipart/form-data" 3.input type="file"-->
        <form action="/api/file/fileuploads.do" method="post" enctype="multipart/form-data">
            <div>
                <label>选择上传的文件：</label>
                <input type="file" name="files">
            </div>
            <div>
                <label>选择上传的文件：</label>
                <input type="file" name="files">
            </div>
            <div>
                <label>选择上传的文件：</label>
                <input type="file" name="files">
            </div>
            <div>
                <label>选择上传的文件：</label>
                <input type="file" name="files">
            </div>
            <button>点击上传</button>
        </form>
    </div>

    <div>
        <a href="/api/file/download.do?num=100">下载txt文件</a>
    </div>
</div>
</body>
</html>